//
//  ViewController.swift
//  FZEnDecodeDemo
//
//  Created by 李雷川 on 2019/6/11.
//  Copyright © 2019 李雷川. All rights reserved.
//

import UIKit
import FZEnDecode
class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let paths = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory,
                                                             FileManager.SearchPathDomainMask.userDomainMask, true)
        let path = paths[0] + "/1.mp4"
        debugPrint("path is",path)
        let startDate = Date()

        for _ in 0..<100{
            FZDesApi.encode(withFilePath: path)
            FZDesApi.decode(withFilePath: path)
        }
      let dudration = Date().timeIntervalSince(startDate)
        debugPrint("dudration is",dudration)
    }


}

